<?php
declare(strict_types=1);

namespace App\Resource\Activity\LaborDay2023;


use Illuminate\Http\Resources\Json\JsonResource;

class GetGiftLeaderboardResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            "user_id" => $this->gift_user,
            "ranking" => $this->ranking,
            "count" => (int)$this->coin,
            "user" => UserResource::make($this->gift_user_data),
        ];
    }
}